<include file="Common/header" />
<title>配套管理</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 物品管理
	<span class="c-gray en">&gt;</span> 出租列表
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<div class="pd-20">
	<div class="panel panel-primary">
		<div class="panel-header">按条件查询</div> 
		<div class="panel-body">
			物品名称：<span class="select-box radius" style="width: 150px;">
				<select class="select" size="1" name="accessid" id="accessid">
					<option value="0">全部</option>
					<?php foreach($alist as $acc){ ?>
					<option value="{$acc['access_id']}">{$acc['title']}</option>
					<?php } ?>
				</select>
			</span>
			<a href="javascript:;" class="btn btn-success radius querys"><i class="Hui-iconfont">&#xe709;</i> 查询</a> 
		</div>
	</div>
</div>
<div class="pd-20">
	<div class="cl pd-5 bg-1 bk-gray"> 
		<span class="r">
			共计：<strong>{$count}</strong> 条
		</span>
	</div>
	<div class="dataTables_wrapper no-footer" id="ajaxDiv">
		<include file="Access/match_list" />
	</div>
</div>
<script>
	$(document).ready(function(){
		$(".querys").on('click', function(){
			$.get('matching.html',{ajax: 1, aid: $("#accessid").val()}, function(data){
				$("#ajaxDiv").html(data);
			});
		});
	});
</script>
</body>
</html>